<template>
  <div>Worth</div>
</template>
<script>
export default {
  beforeRouteEnter(to, from, next) {
    var UserToken=localStorage.getItem("UserToken");
    if (UserToken) {
       next();
    } else {
       next({ path: '/login', query: { historypath: "/worth" }});
    }
  }
};
</script>